@extends('layouts.accountmanage')

@section('title', '找回密码')

@section('header')
	@include('layouts.header-three')
@endsection

@section('content')
	<div class="wrapper-box">
		<div class="container">
			<div class="telRevise">
				<h2>找回密码</h2>
				<div class="telRevise-process telRevise-process2">
					<ul>
						<li class="indent10 processActive">验证身份</li>
						<li class="indent30 processActive">设置新密码</li>
						<li class="indent50 processActive">完成</li>
					</ul>
				</div>
				<div class="telRevise-form  find-pwd-form">
					<form class="form-horizontal" action="{{ route('postReset') }}" method="post">
						{{ csrf_field() }}
						<div class="form-group">
							<label class="col-sm-4 control-label">新密码：</label>
							<div class="col-sm-8">
								<input type="password" class="form-control" name="password" placeholder="6-20位数字、字母或符号">
								@if ($errors->has('password'))
									<span class="error">
                                        {{ $errors->first('password') }}
                                    </span>
								@endif
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-4 control-label">确认密码：</label>
							<div class="col-sm-8">
								<input type="password" class="form-control" name="password_confirmation" placeholder="请再次确认密码">
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12">
								<button type="submit" class="reguesterBtn">下一步</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
@endsection

@section('footer')
	@include('layouts.footer')
@endsection

@section('script')
	<script src="{{ asset('statics/js/jplaceholder.js') }}" ></script>
	<script src="{{ asset('statics/js/from.js') }}" ></script>
	<script>
        //---------------------表单提交--------------------//
        $("form").submit(function(){
            var f=true;//假设通过
            if(checkPwd()==false) f=false;
            if(checkPwd2()==false) f=false;
            return f;
        });
	</script>
@stop